import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '../pages/MainPage.vue'
import HGCMap from '../pages/map/HGCMap.vue'
import LayerTree from '../components/tool/LayerTree.vue'
import PathPlan from '../components/tool/PathPlan.vue'
import SpatialQuery from '../components/tool/SpatialQuery.vue'
import TwoDAnalysis from '../components/tool/TwoDAnalysis.vue'
import ThreeDAnalysis from '../components/tool/ThreeDAnalysis.vue'
import test from '../components/tool/test.vue'
import HGCRSmoitor from '../pages/RSmonitor/HGCRSmoitor.vue'

Vue.use(Router)

let router = new Router({
    routes: [
    {
        path:'/MainPage',
        name:'MainPage',
        component:MainPage,
        children:[
            {path:'/HGCMap',component:HGCMap,
                children:[
                    {path:'/LayerTree',component:LayerTree},
                    {path:'/PathPlan',component:PathPlan},
                    {path:'/SpatialQuery',component:SpatialQuery},
                    {path:'/TwoDAnalysis',component:TwoDAnalysis},
                    {path:'/ThreeDAnalysis',component:ThreeDAnalysis}
                ]
            },
            {
                path:'/HGCRSmoitor',component:HGCRSmoitor
            },
            {
                path:'/test',component:test
            },
        ]
    }
    ]
})

export default router;